libmath.a:math.o
	ar -rc $@ $^

math.o:math.c
	gcc -c $^ -o $@

.PHONY:clean
clean:
	rm -f *.o *.a

.PHONY:mk
mk:
	mkdir -p lib_math/include
	mkdir -p lib_math/libmath
	cp *.a lib_math/libmath
	cp *.h lib_math/include
